<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<style>
body{
text-align:center
}

</style>
<html>
<body>
<script>
function showInsert() {
	document.getElementById("insert").style.display = "block";				
}	
</script>
	<h2>登录后方可进入系统!</h2>
	<h3>注册请点击 <button onClick="showInsert()">注册</button></h3>
	${msg}
	${vic }
	
	<form action="login" method="post">
		<table width="220" border="1" cellspacing="0"  align="center">
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="username" /></td>
			</tr>
			<tr>
				<td>密 码:</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr><td colspan="2" align="center" valign="middle"><input type="submit" value="登录"></td></tr>
		</table>
	</form>
	
	<div id="insert" style="display: none;">
	<h3>----------注册表单---------</h3>
	<form action="insertUser" method="post">
		<table width="220" border="1" cellspacing="0"  align="center">
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="username" /></td>
			</tr>
			<tr>
				<td>密 码:</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr><td colspan="2" align="center" valign="middle"><input type="submit" value="注册"></td></tr>
		</table>
	</form>
	</div>
	
</body>
</html>
